<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/1/28
  Time: 18:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>下拉菜单</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/libs/bootstrap/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/libs/jquery/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/libs/bootstrap/js/bootstrap.js"></script>
</head>
<body>

<div class="container">

    <div class="row">
        <div class="col-sm-12">
            <div class="btn-group">
                <button type="button" class="btn btn-default">按钮1</button>
                <button type="button" class="btn btn-default">按钮2</button>
                <button type="button" class="btn btn-default">按钮3</button>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <div class="btn-toolbar" role="toolbar">
                <div class="btn-group btn-group-lg">
                    <button type="button" class="btn btn-default">按钮1</button>
                    <button type="button" class="btn btn-default">按钮2</button>
                    <button type="button" class="btn btn-default btn-danger">按钮3</button>
                </div>
                <div class="btn-group btn-group-sm">
                    <button type="button" class="btn btn-default">按钮4</button>
                    <button type="button" class="btn btn-default">按钮5</button>
                    <button type="button" class="btn btn-default">按钮6</button>
                </div>
                <div class="btn-group btn-group-xs">
                    <button type="button" class="btn btn-default btn-primary">按钮7</button>
                    <button type="button" class="btn btn-default btn-primary">按钮8</button>
                    <button type="button" class="btn btn-default btn-primary">按钮9</button>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <div class="btn-toolbar" role="toolbar">
                <div class="btn-group-vertical">
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            菜单1
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li role="presentation">
                                <a href="#" role="menuitem">Java</a>
                            </li>
                            <li role="presentation" class="divider"></li>
                            <li role="presentation">
                                <a href="#" role="menuitem">Web</a>
                            </li>
                        </ul>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            菜单2
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li role="presentation">
                                <a href="#" role="menuitem">Java</a>
                            </li>
                            <li role="presentation" class="divider"></li>
                            <li role="presentation">
                                <a href="#" role="menuitem">Web</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

</body>
</html>
